<?php

namespace Home\Model;

use Think\Model\ViewModel;

class DataViewModel extends ViewModel
{
    public $viewFields = [
        'Stuff' => [
            'is_submit_paper',
            'is_send_paper'  ,
            'is_feedback_verdict',
            'is_send_verdict',
            'remark',
            '_type' => 'right',
        ],
        'Verdict'=> [
            'id',
            'month',
            'city',
            'site_name',
            'project_code',
            'unit',
            'profession',
            'send_money',
            'verdict_money',
            'contract_money',
            'sub_money',
            'sub_rate',
            '_on' => 'Verdict.id=Stuff.id',
        ],
    ];

    public function getSomeBatchs()
    {
        return $this->group('month')->order('id desc')->limit(0, 60)->getField('month', true);
    }
}
